From: Paul Donald Date: Wed, 3 Dec 2025 19:52:20 +0000 (+0100) Subject: asterisk: minor config fixup for 23.1.0 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=6a075d6e81972fa5eeedf441c0ee97662e50839f;p=feed%2Ftelephony.git asterisk: minor config fixup for 23.1.0 The patch 001-phoneprov_users.patch can be dropped when upstream renames the config. The config file seems necessary for res_phoneprov to start up, so this helps the user get started. Signed-off-by: Paul Donald --- diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile index a810c2f..1867b44 100644 --- a/net/asterisk/Makefile +++ b/net/asterisk/Makefile @@ -1016,7 +1016,7 @@ $(eval $(call BuildAsteriskModule,res-mwi-devstate,MWI device state subs,This mo $(eval $(call BuildAsteriskModule,res-mwi-external,Core external MWI resource,Core external MWI resource.,,,res_mwi_external,,)) $(eval $(call BuildAsteriskModule,res-mwi-external-ami,AMI for external MWI,AMI support for external MWI.,+$(PKG_NAME)-res-mwi-external,,res_mwi_external_ami,,)) $(eval $(call BuildAsteriskModule,res-parking,Phone Parking,Call parking resource.,+$(PKG_NAME)-bridge-holding,res_parking.conf,res_parking,,)) -$(eval $(call BuildAsteriskModule,res-phoneprov,Phone Provisioning,HTTP phone provisioning.,,phoneprov.conf,res_phoneprov,,)) +$(eval $(call BuildAsteriskModule,res-phoneprov,Phone Provisioning,HTTP phone provisioning.,,phoneprov.conf phoneprov_users.conf,res_phoneprov,,)) $(eval $(call BuildAsteriskModule,res-pjsip-aoc,PJSIP AOC,PJSIP AOC Support.,+asterisk-pjsip +asterisk-res-pjproject,,res_pjsip_aoc,,)) $(eval $(call BuildAsteriskModule,res-pjsip-geolocation,PJSIP Geolocation,PJSIP Geolocation support.,+asterisk-pjsip +asterisk-res-geolocation,,res_pjsip_geolocation,,)) $(eval $(call BuildAsteriskModule,res-pjsip-phoneprov,PJSIP Phone Provisioning,PJSIP phone provisioning.,+$(PKG_NAME)-pjsip +$(PKG_NAME)-res-phoneprov,,res_pjsip_phoneprov_provider,,)) diff --git a/net/asterisk/patches/001-phoneprov_users.patch b/net/asterisk/patches/001-phoneprov_users.patch new file mode 100644 index 0000000..686462e --- /dev/null +++ b/net/asterisk/patches/001-phoneprov_users.patch @@ -0,0 +1,86 @@ +--- a/configs/samples/phoneprov_users.conf ++++ /dev/null +@@ -1,40 +0,0 @@ +-; +-; Device provisioning configuration +-; +-; This file is used by res_phoneprov to define provisioning entries. +-; +- +-[general] +-; +-; Full name of a user +-; +-fullname = New User +-; +-; MAC Address for res_phoneprov +-; +-;macaddress = 112233445566 +-; +-; Auto provision the phone with res_phoneprov +-; +-;autoprov = yes +-; +-; Line Keys for hardphone +-; +-;LINEKEYS = 1 +-; +-; Line number for hardphone +-; +-;linenumber = 1 +-; +-; Local Caller ID number used with res_phoneprov and Asterisk GUI +-; +-;cid_number = 6000 +- +-;[6000] +-;fullname = Joe User +-;secret = 1234 +-;macaddress = 112233445566 +-;autoprov = yes +-;LINEKEYS = 1 +-;linenumber = 1 +-;cid_number = 6000 +--- /dev/null ++++ b/configs/samples/phoneprov_users.conf.sample +@@ -0,0 +1,40 @@ ++; ++; Device provisioning configuration ++; ++; This file is used by res_phoneprov to define provisioning entries. ++; ++ ++[general] ++; ++; Full name of a user ++; ++fullname = New User ++; ++; MAC Address for res_phoneprov ++; ++;macaddress = 112233445566 ++; ++; Auto provision the phone with res_phoneprov ++; ++;autoprov = yes ++; ++; Line Keys for hardphone ++; ++;LINEKEYS = 1 ++; ++; Line number for hardphone ++; ++;linenumber = 1 ++; ++; Local Caller ID number used with res_phoneprov and Asterisk GUI ++; ++;cid_number = 6000 ++ ++;[6000] ++;fullname = Joe User ++;secret = 1234 ++;macaddress = 112233445566 ++;autoprov = yes ++;LINEKEYS = 1 ++;linenumber = 1 ++;cid_number = 6000